package top.hkyzf.onekeycommand.mixin;

import net.minecraft.client.option.KeyBinding;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;

/**
 * description: KeyBinding 属性访问器
 * @author zhufeng
 * @date 2022/9/7 14:57
 * @version V1.0
 */
@Mixin(KeyBinding.class)
public interface KeyBindingAccessor {
    /**
     * 按键次数
     * @param timesPressed 按下次数
     */
    @Accessor
    void setTimesPressed(int timesPressed);

    /**
     * 设置按键状态
     * @param pressed 是否按下
     */
    @Accessor
    void setPressed(boolean pressed);
}
